home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000194_icon-group-sender _Fri Aug 30 08:45:12 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 30 Aug 1996 10:52:52 MST
  2. Message-Id: <199608301545.IAA17632@orpheus.gemini.edu>
  3. From: swampler@noao.edu
  4. Date: Fri, 30 Aug 1996 08:45:12 MST
  5. X-Mailer: Mail User's Shell (7.2.3 5/22/91)
  6. To: icon-group@cs.arizona.edu
  7. Subject: Unbuffered reads from Unix pipes?
  8. Errors-To: icon-group-errors@cs.arizona.edu
  9.  
  10. I left my Icon book at home today - can someone tell me the
  11. character to add to argument 2 of open to read a pipe unbuffered
  12. under Unix?  I want to process each line of input from the pipe
  13. as it comes in, and now wait for enough lines to fill the input
  14. buffer.
  15.  
  16. Thanks!
  17.  
  18. -- 
  19.  
  20. Steve Wampler - swampler@gemini.edu [Gemini 8m Telescopes Project (under AURA)]
  21. The Gods that smiled upon your birth are laughing now. -- fortune cookie
  22.  
  23.  
  24.  9.2.
  25.  
  26. I'd appreciate any help.
  27.  
  28. Thanks!
  29.  
  30. Christian
  31.  
  32. ------------------- test program --------------
  33. procedure xxx (a) 
  34.    write("xxx", a, "yyy")
  35. end
  36.  
  37.  
  38. procedure main () 
  39.    local p
  40.    "write"(44)
  41.    "xxx"(55)
  42.    p := proc("xxx", 1)
  43.    p(55)
  44. end
  45.  
  46. -------------- output -------------
  47. 44
  48.  
  49. Run-time error 106
  50. File t.icn; Line 9
  51. procedure or integer expected
  52. offending value: "xxx"
  53. Trace back:
  54.    main()
  55.    "xxx"(55) from line 9 in t.icn
  56. --
  57. ___________________________________________________________________________
  58. Christian Collberg      | Email: c_collberg@cs.auckland.ac.nz
  59. Computer Science Dept   | Fax:   +64-9-373-7453
  60. University of Auckland  | Phone: +64-9-373-7599 x 6137
  61.